package FrontEnd.Kalender;
import java.util.Date;

public class Termin {
	private int terminnr;
	private String notiz;
	private Date date;
	
	public Termin(int terminnr, Date date, String notiz){
		this.setTerminnr(terminnr);
		this.date = date;
		this.notiz = notiz;
	}


	public String getNotiz() {
		return notiz;
	}

	public void setNotiz(String notiz) {
		this.notiz = notiz;
	}
	
	
	@Override
	public String toString(){
		if (this.date.getMinutes()<10)
			return this.date.getHours() + ":" + "0" + this.date.getMinutes()  + " " + this.getNotiz();
		else
			return this.date.getHours() + ":" + this.date.getMinutes()  + " " + this.getNotiz();
	}


	public int getTerminnr() {
		return terminnr;
	}


	public void setTerminnr(int terminnr) {
		this.terminnr = terminnr;
	}


	public Date getDatum() {
		return date;
	}


	public void setDatum(Date date) {
		this.date = date;
	}

	
}
